package com.ruoyi.api.wsmessage.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 万顺消息对象 wsmessage
 *
 * @author ruoyi
 * @date 2020-06-22
 */
@Data
public class Wsmessage extends BaseEntity {
  //SysUser userSender, String roles, String type, String typeName, String title, String entityId,
  // String instanceId, String taskName, String applyState,String permission
  private static final long serialVersionUID = 1L;
  private Long id;
  private Long userSenderId;
  @JsonProperty(value = "userNameSender")
  private String userSenderName;

  private String userReceiverName;
  private String userReceiverId;
  private String userReceiverLoginName;

  private String type;
  private String expenseType;
  private String typeName;

  private String entityId;
  private Long state;
  private String role;
  private String strArrs[];
  public String[] getStrArrs() {
    return strArrs;
  }
  public void setStrArrs(String[] strArrs) {
    this.strArrs = strArrs;
  }
  private String permission;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date submitTime;//消息时间
  private String instanceId;
  private String taskName;
  private String applyState;
  private String title;
}
